package it.cast.wechat.service;

import it.cast.wechat.dto.ProductVo;
import it.cast.wechat.pojo.Product;

import java.util.List;
import java.util.Optional;

public interface ProductService {
    //删除菜单
    int deleteProduct(String productId);

    //根据id查找菜单
    Optional<Product> queryProduct(String productId);

    //根据菜系id查询菜单
    List<Product> queryProductByCategoryId(String categoryId);

    //添加或修改
    int saveProduct(Product product);

    List<Product> queryAllProduct();

    List<ProductVo> queryAllProductWithCategory();

    //获取推荐的商品
    List<Product> getRecommend(String userId);

}
